export function log(type) {
  return function (target, name, descriptor) {
    let oleValue = descriptor.value
    descriptor.value = function() {
      //在此统一打印
      console.log(`日志上报 ${type}`)

      return oleValue.apply(this, arguments)
    }

    return descriptor
  }
} 